<?php

namespace Modules\Edu\Http\Controllers\Center;

use App\Notifications\CommentMessageNotification;
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\Routing\Controller;
use Modules\Edu\Entities\User;

class TopicController extends Controller
{

    public function index(User $user)
    {


        $topics=$user->topics()->latest()->paginate();
        return view('edu::center.topic',compact('user','topics'));
    }


}
